package com.panshi.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

//@Data
//@NoArgsConstructor
//@AllArgsConstructor
@ApiModel("员工实体类")
public class Employee implements Serializable {
    @ApiModelProperty("员工ID")
    private Integer empId;
    private String lastName;
    private String email;
    private Integer gender;//0=nv 1=nan
    private Integer depId;//Departement 表id
    private Departement departement;
    private Date birth;

    public Employee() {
    }

    @Override
    public String toString() {
        return "Employee{" +
                "empId=" + empId +
                ", lastName='" + lastName + '\'' +
                ", email='" + email + '\'' +
                ", gender=" + gender +
                ", depId=" + depId +
                ", departement=" + departement +
                ", birth=" + birth +
                '}';
    }

    public Employee(Integer empId, String lastName, String email, Integer gender, Integer depId, Departement departement, Date birth) {
        this.empId = empId;
        this.lastName = lastName;
        this.email = email;
        this.gender = gender;
        this.depId = depId;
        this.departement = departement;
        this.birth = birth;
    }

    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Integer getDepId() {
        return depId;
    }

    public void setDepId(Integer depId) {
        this.depId = depId;
    }

    public Departement getDepartement() {
        return departement;
    }

    public void setDepartement(Departement departement) {
        this.departement = departement;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }
}
